//
//  ViewController.m
//  DMHttpManager
//
//  Created by zgy on 2025/6/30.
//

#import "ViewController.h"
#import "DMHttpManager.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
   
}



- (IBAction)handleLoginAction {
    
    
    NSDictionary *loginParams = @{
        @"mobileNo": @"19122223333",
        @"userType": @"2",
        @"userInfo": @"阿飞2",
        @"userName": @"",
        @"option": @(YES),
        @"_cacheToken": @(YES)
    };
    [[DMHttpManager shared] postAction:@"bddriver.user.login.wlx" dataParams:loginParams completion:^(NSDictionary *response, NSError *error) {
        if (response) {
            [self req2];
        }
    }];
    
}


- (void)req2
{
    NSDictionary *loginParams = @{
        @"phoneNumber": @"19122223333",
        @"userType": @2
    };
    [[DMHttpManager shared] postEncryptedAction:@"bddriver.kbdriver.login" dataParams:loginParams completion:^(NSDictionary *response, NSError *error) {
        
    }];
}

@end
